#include <allegro.h>

int main(void){
    char *filename = "background.bmp";
    BITMAP *image;
    int ret;

    allegro_init();
    install_keyboard();

    set_color_depth(16);
    ret = set_gfx_mode(GFX_AUTODETECT_WINDOWED,640,480,0,0);
    if(ret != 0){
        allegro_message(allegro_error);
        return 1;
    }

    image = load_bitmap(filename, NULL);
    if(!image){
        allegro_message("Error loading: %s",filename);
        return 1;
    }

    destroy_bitmap(image);
    textprintf_ex(screen,font,0,0,1,-1,"%dx%d",SCREEN_W,SCREEN_H);

    while(!keypressed());

    allegro_exit();
    return 0;
}
END_OF_MAIN()
